<%@ page contentType="text/html;charset=UTF-8" language="java" import="entity.*,biz.*,biz.impl.*,java.util.*" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("GBK");
    String room_name=(String) request.getParameter("room_name");
    String destine_time=(String) request.getParameter("destine_time");
    String destine_name=(String) request.getParameter("destine_name");
    destine message = new destine();
    message.setDestine_time(destine_time);
    message.setDestine_name(destine_name);
    message.setRoom_name(room_name);
    destineBiz mBiz=new destineBizImpl();
    if(mBiz.addtitle(message)){
    %>
    <script>alert('会议室预定成功');
            location.href='boardroom.jsp';
    </script>
    <%}
    else {
       out.print("会议室预定失败");
    }
%>
</body>
</html>
